package com.loadburn.heron.bind;

import com.loadburn.heron.render.AdditionAttributes;
import com.loadburn.heron.render.RedirectAttributes;

import java.util.List;

/**
 * @author slacrey (scstlinfeng@yahoo.com)
 *         Date: 13-10-29
 */
public interface Response {

    Object getPageInstances();

    void write(String text);

    String toString();

    void redirect(String to);

    String getRedirect();

    String getContentType();

    void clear();

    void setErrors(List<String> errors);

    List<String> getErrors();

    void setRedirectAttributes(RedirectAttributes redirectAttributes);

    RedirectAttributes getRedirectAttributes();

    void setAdditionAttributes(AdditionAttributes additionAttributes);

    AdditionAttributes getAdditionAttributes();

}
